import {QueryPage} from '@/api/common/type.ts'

// 分页查询软件核价单列表请求
export interface softwarePlanListParam extends QueryPage {
    projectId: number | undefined;
    repositoryId: number | undefined;
    activate: number | undefined;
}

// 软件核价表单类型
export interface softwarePlan {
    id?: undefined,
    projectId: number | undefined;
    repositoryId: number | undefined;
    projectAmount: number;
    warehouseQuantity: number;
    wmsAmount: number;
    wcsAmount: number;
    interfaceAmount: number;
    baseImplementationFee: number;
    materialId: number | undefined;
    materialPrice: number;
    materialBasePrice: number
    materialCoefficient: number;
    totalImplementationPrice: number;
    implementationCoefficient: number;
    totalPrice: number;
    extraCost: number;
    extraCostDescription: string | undefined;
    remark: string | undefined;
    implementationItem: ImplementationItem[];
    materialItems: MaterialItem[];
}

// 实施项类型
export interface ImplementationItem {
    id?: number | undefined,   // id
    name: string | undefined;   // 实施项名称
    quantity: number;    // 数量
    unitPrice: number; // 单价
    totalPrice: number;  // 总价
    isBaseImplementation: boolean | undefined;  // 是否基础实施费
}


// 物料项类型
export interface MaterialItem {
    materialId: string | undefined;   // 物料编码
    materialName: string | undefined;  // 物料名称
    brand: string | undefined;  // 品牌
    quantity: number;    // 数量
    purchasePrice: number; // 采购单价
    totalPrice: number;  // 总价
}
